I'm developing an application that finds devices on a network and creates a window in the main window for each device and their processor cores. I want the core buttons to toggle the number of cores being used on a given processor.
To create these windows, I detect the number of processors in the system, then create a new class instance in a vector. I do the same for the cores. In each processor class, there is a vector for each core and a vector for the buttons associated with it.
My problem is that while I have the buttons being created, I cannot figure out how to assign controls for them in the case switch. How would I define the commands for these buttons? I am assuming that I don't know the number of processors or machines, and I am creating these buttons when declaring a new class for the found processor.